package com.ruyuan.process.engine.demo;

import com.ruyuan.process.engine.process.ProcessContext;
import com.ruyuan.process.engine.process.RollbackProcessor;

/**
 * @author zhonghuashishan
 * @version 1.0
 */
// 根本没有spring容器和bean的概念，如何执行你的这个类里的方法呢？反射构建实例，反射调用实例的方法
public class RollBackProcessorDemo extends RollbackProcessor {

    @Override
    protected void processInternal(ProcessContext context) {
        System.out.println("RollBackProcessor " + context.get("id"));
    }

    @Override
    protected void rollback(ProcessContext context) {
        System.out.println("rollback RollBackProcessor " + context.get("id"));
    }

}
